//
//  ViewController.swift
//  GeneralNetworkTool
//
//  Created by Jin on 2018/5/23.
//  Copyright © 2018年 Jin. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    
        let loginRequestData = UserLoginRequestData(loginId: "13361563055", loginPasswd: "a111111")
        let requestParam = BaseRequestHeader(requestCode: "E0404", terminalType: .one, sessionId: nil)
        
        let loginRequest = UserLoginRequest()
        loginRequest.requestData = loginRequestData
        loginRequest.requestParam = requestParam
        
       NetworkTools.shareInstance.userLogin(request: loginRequest) { (objc, error) in
            if let error = error {
                print(error.localizedDescription)
            }else {
                print(objc!)
            }
        }
    }


}

